package com.sbj.controller;

import com.sbj.dto.res.OrderTimeRes;
import com.sbj.service.IMemberService;
import com.sbj.service.OrderTimeService;
import com.zmh.framework.util.Result;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author summer
 * @version 1.0
 * @date 2024/8/24 08:43
 */
@RestController
@RequestMapping(value = "/member_buy_time")
@AllArgsConstructor
public class MemberOrderTimeController {

    private final OrderTimeService orderTimeService;

    private final IMemberService memberService;
    /**
     * 抢购时间
     * @return
     */
    @GetMapping(value = "/index")
    public Result<OrderTimeRes> buyTime(){
        return Result.successResult(memberService.buyTime());
    }
}
